import axios from 'axios';

export function getAllCategory(opt) {
  return axios.get('/goods/category/all', {params: opt});
}

export function getAllItems(opt) {
  return axios.get('/goods/my', {params: opt});
}

export function addItems(opt) {
  return axios.post('/goods/one', opt);
}

export function addItemSpec(opt) {
  return axios.post('/goods/specs/one', opt);
}

export function shelfItem(opt) {
  return axios.put('/goods/shelf', opt);
}
